home *** CD-ROM | disk | FTP | other *** search
- Path: doc.ic.ac.uk!not-for-mail
- From: mdf@doc.ic.ac.uk (Martin Frost)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: MsgPorts and lists
- Date: 16 Feb 1996 16:47:42 -0000
- Organization: Dept. of Computing, Imperial College, University of London, UK.
- Distribution: world
- Message-ID: <4g2cfe$1m0@oak73.doc.ic.ac.uk>
- References: <1527.6618T48T2102@amiga.pp.se>
- Reply-To: mdf@doc.ic.ac.uk (Martin Frost)
- NNTP-Posting-Host: oak73.doc.ic.ac.uk
- X-Newsreader: mxrn 6.18-23
-
-
- In article <1527.6618T48T2102@amiga.pp.se>, mikael.berglund@amiga.pp.se (Mikael Berglund) writes:
- >Some thoughts popped up: Since there is no list arbitration, to my
- >knowledge anyway, from Intuition/Exec on the list, what keeps the situation
- >of scanning straight into oblivion while Intuition/Exec has partly added a
- >new message to the list from occuring? Is the addition of messages to the
- >list protected in some hidden way? So the list is always valid for reading.
-
- GetMsg() basically does a RemHead() bracketed in an Enable()/Disable() pair.
- I don't know if it's future proof, but it would certainly work on all current
- systems to Disable(), scan the list, remove zero or more messages, Enable().
-
- Martin
-